/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Testing;

import com.model.Buku;
import java.util.logging.Level;
import java.util.logging.Logger;


/**
 *
 * @author tashiba
 */
public class TestBuku {

    public static void main(String args[]) {
        Buku test1 = new Buku();
        test1.setJudul("Pemrograman Berorientasi Obyek");
        try {
            test1.setIdKoleksi("Bk19344");
        } catch (Exception ex) {
            Logger.getLogger(TestBuku.class.getName()).log(Level.SEVERE, null, ex);
        }
        test1.setPenulis("Sam Muharto");
        test1.setPenerbit("Tiga Serangkai");
        test1.setTahun(1993);
        System.out.println("Judul       = "+test1.getJudul());
        System.out.println("ID Koleksi  = "+test1.getIdKoleksi());
        System.out.println("Penulis     = "+test1.getPenulis());
        System.out.println("Penerbit    = "+test1.getPenerbit());
        System.out.println("Tahun       = "+test1.getTahun());
        System.out.println("Terlambat   = "+test1.isTerlambat(20));
        System.out.println("Denda       = "+test1.hitungDenda(20));
    }
}
